<div class="rejestracja">
<h1>New user</h1>

<%= error_messages_for :user %>

<fieldset>Podaj dane
<legend>Podaj dane</legend>

<% form_for(@user) do |f| %>  
  <p>
    <label for="name">Imie:</label>
    <%= f.text_field :name, :size => 40 %>
  </p>
  <p>
    <label for="surname">Nazwisko:</label>
    <%= f.text_field :surname, :size => 40 %>
  </p>	
  <p>
    <label for="username">Username:</label>
    <%= f.text_field :username, :size => 40 %>
  </p>
  <p>
    <label for="password">Password:</label>
    <%= f.text_field :password, :size => 40 %>
  </p>
  <p>
    <label for="password_confirmation">Confirm:</label>
    <%= f.text_field :password_confirmation, :size => 40 %>
  </p>
  <p>
    <label for="country">Kraj:</label>
    <%= f.text_field :country, :size => 40 %>
  </p>
  <p>
    <label for="city">Miasto:</label>
    <%= f.text_field :city, :size => 40 %>
  </p>
  <p>
    <label for="email">email:</label>
    <%= f.text_field :email, :size => 40 %>
  </p>
  <p>
  	Admin? : <%= f.check_box :is_admin %>
  </p>
  <p>
    <%= f.submit "Zatwierdź", :class => "submit" %>
  </p>
<% end %>
</fieldset>
</div>